import React, { memo, useState } from 'react';
import { Button } from 'antd';

import Child from './index_index1';

// React.memo
export default (props) => {
    const [value, setValue] = useState(0);
    return (
        <div>
            {value}
            <Child value={value}/>
            <Button type='primary' onClick={() => setValue(value + 1)}>点击</Button>
        </div>
    )
}